package com.voltmao.persistent.mapper;

import org.apache.ibatis.annotations.Param;
import com.voltmao.persistent.model.SysRegion;
import com.voltmao.persistent.model.SysRegionCriteria;

import java.util.List;
import java.util.Map;

public interface SysRegionMapper {
    int countByExample(SysRegionCriteria example);

    int deleteByExample(SysRegionCriteria example);

    int deleteByPrimaryKey(String dataId);

    int insert(SysRegion record);

    int insertSelective(SysRegion record);

    List<SysRegion> selectByExample(SysRegionCriteria example);

    SysRegion selectByPrimaryKey(String dataId);

    int updateByExampleSelective(@Param("record") SysRegion record, @Param("example") SysRegionCriteria example);

    int updateByExample(@Param("record") SysRegion record, @Param("example") SysRegionCriteria example);

    int updateByPrimaryKeySelective(SysRegion record);

    int updateByPrimaryKey(SysRegion record);

    SysRegion selectByExampleForOne(SysRegionCriteria example);

    Map<String, Object> selectMapByPrimaryKey(String dataId);

    Map<String, Object> selectMapByExampleForOne(SysRegionCriteria example);

    List<Map<String, Object>> selectMapByExample(SysRegionCriteria example);

//    zdy

    /**
     * code："c1,c2,c3..."
     * @param code
     * @return
     */
    List<Map<String, Object>> getRegionNameByCode(@Param("code") String[] code);
}